package cn.codeforfun.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Date;
import java.util.Map;

/**
 * Created by Administrator on 2017/2/9 0009.
 */
@Controller
public class TestController {
    @RequestMapping("/")
    public String index(Map<String, Object> model) {
        model.put("time", new Date());
        return "index";
    }
}
